﻿using System.Collections.Generic;
using ApisixSDK.Common;
using ApisixSDK.Admin.model.plugin;
using Newtonsoft.Json;

namespace ApisixSDK.Admin.model
{

	public class Service : BaseModel
	{
		
		[JsonProperty(propertyName: "plugins")]
		public IDictionary<string, Plugin> Plugins { get; set; }

		
		[JsonProperty(propertyName: "upstream")]
		public Upstream Upstream { get; set; }

		
		[JsonProperty(propertyName: "upstream_id")]
		public string UpstreamId { get; set; }

		/// <summary>
		/// [可选]	标识服务名称。
		/// </summary>
		[JsonProperty(propertyName: "name")]
		public string Name { get; set; }
		[JsonProperty(propertyName: "desc")]
		public string Desc { get; set; }

		/// <summary>
		/// [可选]标识附加属性的键值对	
		/// <code>{"version":"v2","build":"16","env":"production"}</code>
		/// </summary>
		[JsonProperty(propertyName: "labels")]
		public string Labels { get; set; }

	}

}